dayup = 1
dayfactor = 0.01
state1 = "on"
state2 = "off"
state  = state1
day    = 1

for i in range(365):
    if state == "on" and (day in [1, 2, 3]):
        dayup = dayup
        day = (day + 1) % 7
    elif state == "on" and (day in [0, 4, 5, 6]):
        dayup = dayup * (1 + dayfactor)
        day = (day + 1) % 7
    elif state == "off":
        day = 0

print("连续学习365天后能力值是:", dayup)
